
package jfireeagle.examples.swing;

import javax.swing.*;
import javax.swing.event.*;

import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.*;

import jfireeagle.FireEagleClient;

public class ClientPanel extends AbstractPanel
{
	private JTabbedPane tabs = new JTabbedPane();
	
	public ClientPanel(FireEagleClient c)
	{
		super(c);
		
		UpdateLocationForm update = new UpdateLocationForm(c);
		
		WithinForm within = new WithinForm(c);
		
		UserLocationForm user = new UserLocationForm(c);
		
		RecentForm recent = new RecentForm(c);
		
		LookupForm lookup = new LookupForm(c);
		
		tabs.addTab("update", update);
		
		tabs.addTab("user", user);
		
		tabs.addTab("recent", recent);
		
		tabs.addTab("within", within);
		
		tabs.addTab("lookup", lookup);

		tabs.setSelectedComponent(update);
		
		this.setLayout(new BorderLayout());
		this.add(tabs);
		
	}
	
}
